blob: 0f1b030f6374cc9272695d86b96749ff3d7f38b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<script>
import Lnurlp from "$comp/Lnurlp.svelte";
import Lnurlw from "$comp/Lnurlw.svelte";
let { data, form } = $props();
let { tag } = data;
</script>
<!-- form carries the action result; without it a failed pay/max/withdraw
showed nothing and left the button spinning forever -->
{#if tag === "payRequest"}
<Lnurlp {data} {form} />
{:else if tag === "withdrawRequest"}
<Lnurlw {data} {form} />
{/if}
|